-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testsuite: Refactor withShorterPathForNewBuildStore (backport #9505) #10059
Conversation
This makes `withShorterPathForNewBuildStore` fit more nicely into the rest of the testing infrastructure. * Move `withShorterPathForNewBuildStore` to `TestM` monad * Move responsibility for passing `--store-dir` to `cabalGArgs` function * Move `findDependencyInStore` into `TestM`, and remove requirement to pass path to store directory. * Introduce `testStoreDir` function which returns the store location (and honours `withShorterPathForNewBuildStore`) * Migrate tests which use `withShorterPathForNewBuildStore`. (cherry picked from commit 2a2d0b3) # Conflicts: # Cabal-tests/Cabal-tests.cabal # Cabal-tests/lib/Test/Utils/TempTestDir.hs
Cherry-pick of 2a2d0b3 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
If you want autosquash behavior, it needs to be |
@geekosaur oh, my bad, thank you. that's mostly cargo-culting: I hope to employ mergify for that anyway, and it doesn't care about these things (I think). |
If you explicitly squash it doesn't; if you |
failure:
should be easy to fix. If someone has cycles for it, that would be most welcome. |
Anyone know what's up here? It doesn't look like any individual job failed, just some unexpected skips. |
This makes
withShorterPathForNewBuildStore
fit more nicely into the rest of the testing infrastructure.withShorterPathForNewBuildStore
toTestM
monad--store-dir
tocabalGArgs
functionfindDependencyInStore
intoTestM
, and remove requirement to pass path to store directory.testStoreDir
function which returns the store location (and honourswithShorterPathForNewBuildStore
)withShorterPathForNewBuildStore
.Please read Github PR Conventions and then fill in one of these two templates.
This is an automatic backport of pull request #9505 done by [Mergify](https://mergify.com).